<div class="right-panel">
    <h2><?php echo __('PAYROLL_BATCH_MAINTENANCE'); ?>
        <span  class="back-align">
            <?php echo $this->html->link('<< ' . __('BACK', true), array('controller' => 'payees', 'action' => 'payee_links'), array('div' => false, 'alt' => '<< ' . __('BACK', true), 'title' => '<< ' . __('BACK', true), 'class' => 'back-nav', 'escape' => false)); ?>
        </span>
    </h2>
    <div class="content-outer">
        <div class="top-btns">
            <?php echo $this->Form->create("Payroll"); ?>
            <table width="100%" cellpadding="2" cellspacing="2" border="0">
                <tr>
                    <td align="left"><b><?php echo __('SEARCH') ?>:<b></td>
                    <td  align="left" >
                        <?php echo $this->Form->input('Payroll.search_criteria', array('maxlength' => '100', 'class' => 'text-input normal-wdh required', 'label' => false, 'div' => false)); ?>
                    </td>
                    <td><?php 
                        echo __('MONTH');
                        $months = array(
                            '' => '-Select-',
                            1 => 'Jan',
                            2 => 'Feb',
                            3 => 'Mar',
                            4 => 'Apr',
                            5 => 'May',
                            6 => 'Jun',
                            7 => 'Jul',
                            8 => 'Aug',
                            9 => 'Sep',
                            10 => 'Oct',
                            11 => 'Nov',
                            12 => 'Dec'
                        );
                        
                    ?>:</td>
                    <td  align="left">
                        <?php echo $this->Form->input('Payroll.month', array('type' => 'select', 'options' => $months, 'label' => false, 'div' => false, 'value' => date('m'))); ?>
                    </td>
                    <td><?php 
                        echo __('YEAR');
                        $startYear = 2014;
                        $years = array();
                        //$years[''] =  '-Select-';
                        for($year = 0; $year <= 10; $year++){
                            $years[($startYear+$year)] = $startYear+$year;
                        }
                    ?>:</td>
                    <td  align="left" >
                        <?php echo $this->Form->input('Payroll.year', array('type' => 'select', 'options' => $years, 'label' => false, 'div' => false, 'value' => date('Y'))); ?>
                    </td>
                    <td align="left">
                        <div class="actionbtns">
                            <?php
                            echo $this->Js->submit(__('SEARCH', true), array(
                                'update' => '#divUpdate', "class" => "button", 'label' => false, 'div' => false,
                                'before' => $this->Js->get('#divUpdate')->effect('fadeOut'),
                                'success' => $this->Js->get('#divUpdate')->effect('fadeIn')));
                            ?><div class="buttonEnding"></div>
                        </div>
                    </td>
                </tr>
            </table>
            <?php echo $this->Form->end(); ?>
        </div>

        <!-- Div update starts here -->
        <div id="divUpdate">
            <?php echo $this->element('payrolls/list'); ?>
        </div>
        <!-- Div update ends here -->
    </div>
<!--content-outer End-->
</div>